import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
    {
        path: '/',
        redirect: '/login',
    },
    {
        path: '/login',
        name: 'login',

        component: () => import( '../views/login.vue'),
    },
    {
        path: '/index',
        name: 'index',
        component: () => import( '../views/index.vue'),
    },
    {
        path: '/shopCar',
        name: 'shopCar',
        component: () => import( '../views/shopCar.vue'),
    },
    {
        path: '/Order',
        name: 'Order',
        component: () => import( '../views/Order.vue'),
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;